﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm.aspx.cs" Inherits="CRM.Web.Test.WebForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            ShowFooter="True" onrowcommand="GridView1_RowCommand" 
            onrowcreated="GridView1_RowCreated" 
            onrowcancelingedit="GridView1_RowCancelingEdit" 
            onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating" 
            onrowdatabound="GridView1_RowDataBound">
            <Columns>
                <asp:TemplateField HeaderText="A">  
                    <ItemTemplate>
                        <asp:Label ID="lblA" runat="server" Text='<%# Eval("A") %>'></asp:Label>
                    </ItemTemplate> 
                    <EditItemTemplate>
                        <asp:TextBox ID="A" runat="server" Text='<%# Eval("A") %>'></asp:TextBox>
                    </EditItemTemplate>                                     
                    <FooterTemplate>
                        <asp:TextBox ID="txtA" runat="server"></asp:TextBox>
                        <asp:Button ID="btnA" runat="server" CommandName="A" Text="AA" />
                    </FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="B">
                    <ItemTemplate>
                        <asp:Label ID="lblB" runat="server" Text='<%# Eval("B") %>'></asp:Label>
                    </ItemTemplate> 
                    <EditItemTemplate>
                        <asp:TextBox ID="B" runat="server" Text='<%# Eval("B") %>'></asp:TextBox>
                    </EditItemTemplate>   
                    <FooterTemplate>
                        <asp:TextBox ID="txtB" runat="server"></asp:TextBox>
                    </FooterTemplate>
                    </asp:TemplateField>
                <asp:TemplateField HeaderText="C">
                    <ItemTemplate>
                        <asp:Label ID="lblC" runat="server" Text='<%# Eval("C") %>'></asp:Label>
                    </ItemTemplate> 
                    <EditItemTemplate>
                        <asp:TextBox ID="C" runat="server" Text='<%# Eval("C") %>'></asp:TextBox>
                    </EditItemTemplate>      
                    <FooterTemplate>
                        <asp:TextBox ID="txtC" runat="server"></asp:TextBox>
                    </FooterTemplate>
                    </asp:TemplateField>
                <asp:CommandField ShowEditButton="True" />
                <asp:CommandField ShowSelectButton="True" />
            </Columns>
            <EmptyDataTemplate>
                
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
    <asp:Label ID="lblMessage" runat="server"></asp:Label>
    </form>
</body>
</html>
